<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript">
        function fn1() {
            alert("HelloWorld");
        }

        function fn2() {
            alert("Tomcat");
        }

        // 对于原生js中的onload只能赋值一次
        window.onload = fn1;
        window.onload = fn2;
    </script>

</head>

<body>
</body>

</html>